package com.dadaguai.service;

import com.dadaguai.common.BusinessException;
import com.dadaguai.domain.UserInfo;
import com.dadaguai.domain.UserIntegralRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 王半仙
* @description 针对表【user_integral_record(用户积分记录表)】的数据库操作Service
* @createDate 2023-10-20 11:28:40
*/
public interface UserIntegralRecordService extends IService<UserIntegralRecord> {

    /**
     * 修改用户积分
     * @param user 目标用户
     * @param type 积分类型
     * @param value 值（正数为增，负数为减）
     */
    void changeUserIntegral(UserInfo user, Integer type, Integer value) throws BusinessException;
}
